var SwiperLunBo = function(){};   
SwiperLunBo.prototype = {
	swiper: function(){
		var mySwiper = new Swiper('.swiper-container', {
	        initialSlide: 0,                        	//设置初始化时slide的索引，默认0
	        speed: 1500,                            	//设置滑动速度，默认为300
	        autoplay: 2000,                         	//可选选项，自动滑动
	        loop: true,                             	//循环轮播
	        pagination : '.swiper-pagination',      	//定义分页器
	        paginationType : 'bullets',             	//自定义分页器
	        paginationClickable :true,              	//分页器可点击
	        autoplayDisableOnInteraction: false,    	//用户操作swiper之后，是否禁止autoplay，默认为true
	 	});
	 	return this;
	},
	changeLunBo: function(imageArr){
		var ImgNew = $('.swiper-slide img');
		ImgNew[0].src = imageArr[imageArr.length - 1];	//第一个img标签的前面添加最后一张图片
		ImgNew[ImgNew.length - 1].src = imageArr[0];	//最后一个img标签的后面添加最后一张图片
		for(var i = 0;i < imageArr.length;i++){
	 		ImgNew[i + 1].src = imageArr[i];
	 	}
	 	return this;
	},
	carousel: function(imageArr){
		//需要根据imageArr的长度来创建img标签
		for (var j = 0;j < imageArr.length;j++) {
			swiper();
		}
 		function swiper(){
 			var wrap = $('.swiper-wrapper');
 			var slide = $('<div class="swiper-slide"><img src="" alt=""></div>');
 			wrap.append(slide);
 		}
	 	return this;
	}
}